package com.sx.art2.beans;

public class Auction {
	
	private int auctionId;
	private int auctionInfoId;
	private int userId;
	private float auctionPrice;
	private String auctionTime;
	private int topPrice;//0:否1：是
	private int state;
	
	private Art art;
	private AuctionInfo auctionInfo;
	private User user;
	
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public int getAuctionId() {
		return auctionId;
	}
	public void setAuctionId(int auctionId) {
		this.auctionId = auctionId;
	}
	public int getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}
	public float getAuctionPrice() {
		return auctionPrice;
	}
	public void setAuctionPrice(float auctionPrice) {
		this.auctionPrice = auctionPrice;
	}
	public String getAuctionTime() {
		return auctionTime;
	}
	public void setAuctionTime(String auctionTime) {
		this.auctionTime = auctionTime;
	}
	public Auction() {
		super();
		// TODO 自动生成的构造函数存根
	}
	public Art getArt() {
		return art;
	}
	public void setArt(Art art) {
		this.art = art;
	}
	public int getAuctionInfoId() {
		return auctionInfoId;
	}
	public void setAuctionInfoId(int auctionInfoId) {
		this.auctionInfoId = auctionInfoId;
	}
	public AuctionInfo getAuctionInfo() {
		return auctionInfo;
	}
	public void setAuctionInfo(AuctionInfo auctionInfo) {
		this.auctionInfo = auctionInfo;
	}
	public int getTopPrice() {
		return topPrice;
	}
	public void setTopPrice(int topPrice) {
		this.topPrice = topPrice;
	}
	public int getState() {
		return state;
	}
	public void setState(int state) {
		this.state = state;
	}
	public Auction(int auctionId, int auctionInfoId, int userId, float auctionPrice, String auctionTime, int topPrice,
			int state, Art art, AuctionInfo auctionInfo, User user) {
		super();
		this.auctionId = auctionId;
		this.auctionInfoId = auctionInfoId;
		this.userId = userId;
		this.auctionPrice = auctionPrice;
		this.auctionTime = auctionTime;
		this.topPrice = topPrice;
		this.state = state;
		this.art = art;
		this.auctionInfo = auctionInfo;
		this.user = user;
	}
	@Override
	public String toString() {
		return "Auction [auctionId=" + auctionId + ", auctionInfoId=" + auctionInfoId + ", userId=" + userId
				+ ", auctionPrice=" + auctionPrice + ", auctionTime=" + auctionTime + ", topPrice=" + topPrice
				+ ", state=" + state + ", art=" + art + ", auctionInfo=" + auctionInfo + ", user=" + user + "]";
	}
	
	

}
